#ifndef UI_LOGINDIALOG_H
#define UI_LOGINDIALOG_H

#include <QPushButton>
#include <QLineEdit>
#include <QDialog>
#include <QLabel>
namespace Fanfou
{
	class LoginDialog : public QDialog
	{
		Q_OBJECT
		public:
			LoginDialog();
			QString getUserName() { return nameEdit.text(); }
			QString getPassword() { return passwordEdit.text(); }
			void setValidateResult(bool successful);

		signals:
			void okButtonClicked();





		private:
			QLineEdit		nameEdit;
			QLineEdit		passwordEdit;
			QPushButton		okBtn;
			QPushButton		cancelBtn;
			QLabel			label;
			QLabel			infoLabel;
		private slots:
			void validateUserInfo();
	};
} // namespace Fanfou
#endif // LOGINDIALOG_H
